package com.example.forum.dao;

import com.example.forum.model.ArticleDraft;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleDraftMapper {
    
    ArticleDraft selectByPrimaryKey(Long id);
    
    List<ArticleDraft> selectByUserId(Long userId);
    
    int insert(ArticleDraft record);
    
    int insertSelective(ArticleDraft record);
    
    int updateByPrimaryKeySelective(ArticleDraft record);
    
    int updateByPrimaryKeyWithBLOBs(ArticleDraft record);
    
    int updateByPrimaryKey(ArticleDraft record);
    
    int deleteByPrimaryKey(Long id);
    
    int countByUserId(Long userId);
} 